<template>
    <Form :instance="pResetPassword" :data="pResetPassword.data">
        <div class="blank "></div>
        <div style="display: grid;grid-gap: 2vw;grid-template-columns: 1fr 3fr;margin: 0 2vw;">
            <Button @click="() => router.back()" style="border-radius: 6px;" type="danger">
                取消
            </Button>
            <Button @click="onConfrim" style="border-radius: 6px;" type="primary">完成
            </Button>
        </div>
    </Form>
</template>
<script setup lang="ts">
import { ResetPassword } from "@b/index/account";
import { useRouter } from "vue-router";
import Form from "@m/components/public/b_form.vue";
import { Button } from "vant";
const pResetPassword = new ResetPassword()
const router = useRouter()
const onConfrim = async () => {
    const res = await pResetPassword.updateData();
    if (res) {
        router.back()
    }
}
</script>